<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修饰符</title>
  <script src="../js/vue.js"></script>

  <style>
    .rect{
        width:400px;
        height:200px;
        background-color: aqua;
        display: flex;
    }

    .blue{
        background-color: blue;
        width:100px;
        height:100px;
    }
  </style>
</head>
<body>
  <div id="app">
    <!-- .stop  .prevent  .self  .xx-->
      <div @click="divClick()">
        999
        <button @click.stop="btnClick()">button</button>

        <form action="3-5.html">
            <input type="submit" value="提交" @click.prevent="inputClick()">
        </form>


        <div class="rect" @click="alertAquamarine">
            <div class="blue" @click="alertBlue"></div>
        </div>

        <input type="text" @keyup.R="keyup">

        <!-- //<vue-router></vue-router> 页面跳转-->
      </div>
  </div>
<br>
  <script>
    let app = new Vue({
      el:"#app",
      data:{
           msg:'hello world'
       },
       methods:{
        divClick(){
            console.log("divClick");
        },
        btnClick(){
            console.log("btnCllick");
        },
        inputClick(){
            console.log("inputCllick");
        },
        alertAquamarine(){
            console.log("alertAquamarine")
        },
        alertBlue(){
            console.log("alertBlue")
        },
        keyup(){
            console.log("keyup")
        }
       },
     })
   </script>
</body>
</html>